package mc.support.taobao.api;

import mc.support.taobao.api.fields.GetSellerFields;
import com.taobao.api.TaobaoRequest;
import com.taobao.api.request.UserSellerGetRequest;
import com.taobao.api.response.UserSellerGetResponse;

/**
 * Created with IntelliJ IDEA. <br/>
 * User: francis    <br/>
 * Date: 13-11-21    <br/>
 * Time: 19:00  <br/>
 */
public class GetSellerReq extends AbstractReq<GetSellerReq, UserSellerGetResponse> {

    private GetSellerFields fields;

    public GetSellerReq fields(GetSellerFields fields) {
        this.fields = fields;
        return this;
    }

    @Override
    protected TaobaoRequest toRequest() {
        UserSellerGetRequest req = new UserSellerGetRequest();
        if (null != fields) {
            req.setFields(fields.toString());
        }
        return req;
    }


}
